@charset "utf-8";

@import "reusing";


#news{
    padding-top: 40px;
    h1{
        padding-bottom: 35px;
        font-size: 30px;
        color: $orange;
    }
    img{
        width: 90%;
        display: block;
        margin: auto;
        border: 1px solid $gray2;
        box-sizing: border-box;
    }
    .news_mask{
        position: relative;
        padding: 0;
        overflow: hidden;
        &:hover{
            cursor: pointer;
        }
        &:hover .mask,&:hover h2{
            bottom: 0;
            transition: all 300ms;
        }
        .mask_reusing{
            width: 90%;
            height: 20%;
            position: absolute;
            bottom: -40px;
            left: 5%;
        }
        .mask{
            @extend .mask_reusing;
            background-color: $black;
            opacity: 0.7;
        }
        &>h2{
            @extend .mask_reusing;
            display: block;
            color: $white;
            font-size: 14px;
            padding: 4% 10px;
            text-align: center;
        }
    }
}

#news_list{
    padding-top: 35px;
    img{
        width: 100%;
        padding: 5px;
        border: 1px solid $gray3;
        border-radius: 5px;
    }
    h1{
        font-size: 18px;
        color: $orange;
        padding-bottom: 13px;
        padding-top: 10px;
    }
    h2{
        font-size: 14px;
        padding-bottom: 18px;
    }
    p{
        font-size: 14px;
        line-height: 25px;
    }
    input{
        width: 98px;
        height: 32px;
        background-color: $white;
        color: $orange;
        border-radius: 16px;
        border: 1px solid $orange;
        margin-top: 10px;
        margin-bottom: 30px;
        transition: all 200ms;
        &:hover{
            background-color: $orange;
            color: $white;
        }
    }
}

#page{
    .container{
        border-top: 1px dashed $gray3;
        padding-top: 35px;
        padding-bottom: 25px;
        .pageBox{
            width: 50%;
            margin: auto;
            border: 1px solid $orange;
            box-sizing: border-box;
            border-radius: 5px;
            font-size: 0;
            a{
                display: inline-block;
                width: calc(100% / 8);
                height: 40px;
                text-align: center;
                line-height: 40px;
                box-sizing: border-box;
                font-size: 14px;
                color: $orange;
                border-left: 1px solid $orange;
                overflow: hhidden;
                transition: all 200ms;
                &:hover{
                    background-color: $orange;
                    color: $white;
                    text-decoration: none;
                }
                
                &:first-child{
                    width: calc(100% / 8);
                    border-radius: 3px 0 0 3px;
                    border-left: none;
                    min-width: 38px;
                }
                &:last-child{
                    border-radius: 0 3px 3px 0;
                    min-width: 38px;
                }
            }
        }
    }
}

@media (max-width:996px){
    #news .news_mask h2{
        font-size: r(10);
    }
    #news_list h1{
        font-size: r(20);
    }
}

@media (max-width:767px){
    #news .news_mask h2{
        font-size: r(26);
    }
    #news_list h1{
        font-size: r(35);
    }
    #news_list input{
        width: 100%;
        height: 40px;
        display: block;
        float: none;
        border-radius: 0;
        margin: 10px auto 60px;
    }
    #page{
        .container{
            .pageBox{
                width: 100%;
                a{
                    font-size: r(24);
                    &:nth-child(2){
                        min-width: 38px;
                    }
                }
            }
        }    
    }
}
@media (max-width:340px){
    #page{
        .container{
            .pageBox{
                a{
                    &:nth-child(3),&:nth-child(4),&:nth-child(5),&:nth-child(6),&:nth-child(7){
                        width: calc((100% / 8) - 2px);
                    }
                }
            }
        }
    }
}